package com.nuoniu.sibanyun.mapper.crm;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.entity.crm.CrmInvitationForm;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 邀约表单 Mapper 接口
 * </p>
 *
 * @author 小啊刚
 * @since 2021-09-03
 */
public interface CrmInvitationFormMapper extends BaseMapper<CrmInvitationForm> {

    @Select("select * from crm_invitation_form where form_id=#{formId} and phone=#{phone}")
    CrmInvitationForm getByPhone(CrmInvitationForm invitationForm);

    /**
     * 获取表单列表
     * @author 小啊刚
     * @date 2021-09-18
     */
    Page<CrmInvitationForm> pageList(Page page, @Param("form") CrmInvitationForm invitationForm);
}
